<%@page import="vo.mailVO"%>
<%@page import="dto.mailDTO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>main default</title>
<link rel="stylesheet" href = '${pageContext.request.contextPath }/css/main_contents.css'>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/main_contents.js"></script>
</head>
<body>
<jsp:useBean id="vo" class="vo.mailVO" scope="page"/>
<jsp:setProperty property="*" name="vo"/>
<% 
	mailDTO dto = new mailDTO();
	String id_2 = (String)session.getAttribute("sessionMid");
	vo.setM_id(id_2);
	mailVO v = dto.emailInfo(vo);
%>
	<form name = 'left2_menu_Frm' method='post'>
		<input type='hidden' name='m_id' value="<%=v.getM_id()%>"/>
		<input type="hidden" name="email_list"/>
		<input type="hidden" name="email_address" value="<%=v.getEmail_address()%>">
		<input type="hidden" name="email_pwd" value="<%=v.getEmail_pwd()%>"/>
		<input type="hidden" name="e_name" value="<%=v.getE_name()%>"/>
		<input type="hidden" name="email_sender" value="<%=v.getEmail_sender()%>"/>
	</form>
<%
	String board_notice = request.getParameter("board_notice");	// 공지사항
	if(board_notice==null){	
		board_notice = "../board/list_mini.jsp?category=1&form_num=0";					// 공지사항
	}
	
	String message_receive = request.getParameter("message_receive");	// 받은 쪽지함 
	if(message_receive==null){	
		message_receive = "../message/message_mini.jsp?msg_type=1";					// 받은 쪽지함
	}
	String schedule_private = request.getParameter("schedule_private");	// 공지사항
	if(schedule_private==null){	
		schedule_private = "../schedule/schedule_private_today.jsp";					// 공지사항
	}
	
%>

<div id="wrap">

	<!-- 이미지 메뉴  -->
	<!-- 쪽지, 메일, 파일, 업무관리 -->
	<div id="image_menu" align="center">
			<input type="image" class="image_item" src="../images/big_button_message.png"  onclick="go_message()"/>
			<input type="image" class="image_item" src="../images/big_button_mail.png" onclick="goMail_getList2('INBOX')"/>
			<input type="image" class="image_item" src="../images/big_button_file.png" onclick="go_file()"/>
			<input type="image" class="image_item" src="../images/big_button_work.png" onclick="go_work()"/>
	</div>
	<br>
	<hr>
	<br>
	<!--  공지사항 , 받은 쪽지 -->
	<div id="board_and_message">
		<div class="board_notice">
			<input type="image" src="../images/m_title_notice.png"/>
			<input type="image" src="../images/m_title_more.png" align="right" onclick="goNotice()"/><br>
			<jsp:include page="<%=board_notice%>"  flush="false"/>
		</div>
		<div class="message_receive">
			<input type="image" src="../images/m_title_messege_get.png"/>
			<input type="image" src="../images/m_title_more.png" align="right" onclick="message_receive()"/><br>
			<jsp:include page="<%=message_receive%>"  flush="false"/>
		</div>
	</div>
	<hr>
	<!-- 일정 관리 -->
	<div id="schedule_list">
		<jsp:include page="<%=schedule_private%>"  flush="false"/>
	</div>
	
</div>
</body>
</html>